﻿using System.Linq;
using TavDom.Library.Core.Entities;

namespace TavDom.Library.Core.Data
{
    public interface IEntityRepository<T> where T : class, IEntity, new()
    {
        IQueryable<T> GetAll();
        T Get(T entity);
        T GetById(int id);
        T Add(T entity);   
        void Delete(T entity);
        T Update(T entity);
    }
    
}
